import instance from '../utils/http'
export const reqLogin = (code) => instance.request({
  url: `/weixin/wxLogin/${code}`
})
export const getUserInfo = () => instance.request({
  url: '/weixin/getuserInfo'
})

export const updateUserInfo = (data) => instance.request({
  url: '/weixin/updateUser',
  method: 'post',
  data
})